from nose.tools import *
from ex48 import Parser,lexicon

def test_directions():
	assert_equal(lexicon.scan("north"), [('direction', 'north')])
	result = lexicon.scan("north south east")
	assert_equal(parse_sentence(result), [('direction', 'north'),
		('direction', 'south'),
		('direction', 'east')])
